import { Sequelize } from 'sequelize-typescript'
import { Dealer } from './Dealer'
import { BlindBoxGift } from './BlindBoxGift'
import { Member } from './Member'
import { MemberPrizeRecord } from './MemberPrizeRecord'

export const db = new Sequelize({
    dialect: 'mysql',
    host: '127.0.0.1',
    username: 'root1',
    password: 'ada15ffsf465s4wf',
    database: 'fj_imall_20220505shop',
    logging: false,
    models: [BlindBoxGift, Dealer, Member, MemberPrizeRecord],
})

export { Dealer } from './Dealer'
export { BlindBoxGift } from './BlindBoxGift'
export { Member } from './Member'
export { MemberPrizeRecord } from './MemberPrizeRecord'
